home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr35
/
jvdnld01.zip
/
DOWNLOAD.DOC
< prev
Wrap
Text File
|
1993-05-06
|
5KB
|
106 lines
Download Counter by Jim Velguth 05/06/93
GT has needed a doanload counter for a long time. With the
additon of the GT_PIGGY.BAT in Beta10 it is now possible. This
package contains DNLDCTR.EXE which creates a database of downloaded
file names, last date downloaded and count along with DNLDMST.EXE
which creates a "10 most wanted" bulletin. For multinode bbs's I
created DNLDADD which will total all GT_DWNLD.DBS's for a master 10
most wanted bulletins.
DNLDCTR is very simple, there are no command line arguments.
Just execute it in your GT_PIGGY.BAT file and it will use the
GTPATH environment variable to locate GT_XMIT.LST and create a
database of downloaded files called GT_DWNLD.DBS also in your
GTPATH. DNLDCTR will record the filename, number of times
downloaded and the last date downloaded. The date is useful to
the sysop to move the file offline when it gets too old.
DNLDCTR.EXE does not need to be executed from the GTPATH.
NOTE: For multinode bbs's each node needs its own GT_PIGGY.BAT
to avoid conflict when 2 downloads are happening at the same
time. Only 1 copy of DNLDCTR.EXE is needed if its in the DOS
path. Here is an example of my GT_PIGGY.BAT
> REM gtpath MUST be set
> DNLDCTR
DNLDMST creates a bulletin of the 10 most wanted downloads. I
expect it to be executed in nightly maintenance. It will use the
GTPATH environment variable to locate the database GT_DWNLD.DBS.
It has 1 required command line argument and 3 optional command
line arguments. None require a prefix identifier (ie no /). The
first is the FULL path and name of the bulletin you wish to
create. The second, third and forth can be in any order and
are optional. You may add the name of your bbs to the bulletin
like this "n:The Coordinate Axis" (has a maxium of 48
characters). If your bbs name contains spaces the quotes are
required. The remaining 2 arguments are used for multi-node
bbs's. The next argument can be used to set an alternate path
name a:C:\GT\NODE2 so individual bulletns can be created for
each node. As well as total bulletin. And the last is the
total indicator switch t used on multi-node bbs's (more on this
next). DNLDMST does not have to be in the gtpath if its in the
dos path. Here is an example bat for a single node bbs. It is
not suggested to use a: and t together because the last one will
take precedence.
> DNLDMST C:\GT\BBS\9 "n:The Coordinate Axis"
See next section for multi-node bbs examples.
DNLDADD is used on multi-node bbs's to total all the download
databases. It has no command line arguments. DNLDADD.EXE will
use the GTPATH environment variable to locate GT_DWNLD.LST which
is a list of ALL gtpath's on a multi-node bbs and create
GT_DWNLD.TOT a total of all GT_DWNLD.DBS databases listed in
GT_DWNLD.LST. Here is the GT_DWNLD.LST I used for testing.
> c:\tcplay
> c:\tcplay\tc1
> c:\tcplay\tc2
each had its own GT_DWNLD.DBS in it.
DNLDADD.EXE does not need to be in the gtpath if its in the dos
path. When used you must use the /t switch with DNLDMST to
indicate to use the total database. Here is an example bat file
for use on multi-node bbs's to create only a 10 most wanted
bulletin.
> DNLDADD
> DNLDMST C:\GT\BBS\9 "c:The Coordinate Axis" t
Here is an example bat file for use on multi-node bbs's to
create individual bulletins and a 10 most wanted bulletin.
> DNLDMST C:\GT\BBS\7 "c:The Coordinate Axis Node1"
> DNLDMST C:\GT\BBS\8 "c:The Coordinate Axis Node2" a:C\GT\NODE2
> DNLDADD
> DNLDMST C:\GT\BBS\9 "c:The Coordinate Axis all nodes" t
There is an indicator in the database that is switched to y when
a download occurs and switched to n when a bulletin is created.
I did this to keep down the work on the hard drive. DNLDADD will
set the total database(GT_DWNLD.TOT) to y. If something happens to
your bulletin you can run/rerun DNLDADD.EXE. GT_DWNLD.TOT is
deleted and recreated each run and can be run with only 1 gtpath
name in GT_DWNLD.LST.
Those of you who saved up downloads with
TYPE GT_XMIT.LST >> GT_XMIT.LOG can now rename GT_XMIT.LOG to
GT_XMIT.LST and run DNLDCTR.EXE.
For all this documentation and examples I am assuming all
nightly maintenance is done from 1 node.
I would like to know who is using my efforts so please netmail
me Jim Velguth at 005/003 about performance. These run fine on my
386dx under a multitasker. Please also let me know about any
suggestions for the future. I already have adding color to the
bulletin on the wish list. I already have an idea on how to save 6
bytes per file in the database file but I need to work on it a bit
more.
GT is regisgered copyright of Paul Meiners.